<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'insert1.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<style type="text/css">
#apDiv1 {
	position: absolute;
	left: 583px;
	top: 18px;
	width: 640px;
	height: 434px;
	z-index: 1;
}
</style>
</head>

<body>
	<%!Integer j;%>
	<%!ArrayList<ArrayList<String>> list;%>
	<%
		list = (ArrayList<ArrayList<String>>) session.getAttribute("list");
			System.out.println("update.jsp");
			j = Integer.parseInt(request.getParameter("id"));
			System.out.println("xh:" + list.get(j).get(0));
	%>

	<div id="apDiv1">
		<form id="form1" name="form1" method="post" action="user/update">
			<p>可能造成瓦斯异常因素:</p>
			<p>
				<label for="textarea"></label>
				<textarea name="kn" id="textarea" cols="45" rows="5"><%=list.get(j).get(6)%></textarea>
			</p>
			<p>
				<br> 防范措施:
			</p>
			<p>
				<label for="textarea2"></label>
				<textarea name="ff" id="textarea2" cols="45" rows="5"><%=list.get(j).get(7)%></textarea>
			</p>
			<p>
				<br> 风险预警等级:
			</p>
			<p>
				<input type="text" name="fx" id="textfield6"
					value=<%=list.get(j).get(8)%>> <br>
			</p>
	</div>

	<p>序号(请不要修改):</p>
	<p>
		<label for="textfield"></label> <input type="text" name="xh"
			id="textfield" value=<%=list.get(j).get(0)%>>
	</p>
	<p>
		<br> 生产区（队）:
	</p>
	<p>
		<input type="text" name="sc" id="textfield2"
			value=<%=list.get(j).get(1)%>>
	</p>
	<p>
		<br> 地 点:
	</p>
	<p>
		<input type="text" name="dd" id="textfield3"
			value=<%=list.get(j).get(2)%>>
	</p>
	<p>
		<br> 目前 情况:
	</p>
	<p>
		<label for="textfield7"></label> <input type="text" name="mq"
			id="textfield7" value=<%=list.get(j).get(3)%>>
	</p>
	<p>
		<br> 瓦斯含量（m3/t）:
	</p>
	<p>
		<input type="text" name="ws" id="textfield4"
			value=<%=list.get(j).get(4)%>>
	</p>
	<p>
		<br> 预计前方下周平均瓦斯涌出量涌出量(m3/min):
	</p>
	<p>
		<input type="text" name="yj" id="textfield5"
			value=<%=list.get(j).get(5)%>>
	</p>
	<p>
		<br>
	</p>
	<input type="submit" name="button3" id="button3" value="提交" />
	</form>
</body>
</html>